package controller.link.game;

import view.client.Console;
import java.io.Serializable;
import controller.Link;
import java.util.ArrayList;
import model.game.Item;
import model.Attendant;
import model.Server;

public class OpenSeller implements Link, Serializable {

    private ArrayList<Item> items;

    public OpenSeller(ArrayList<Item> items) {
        this.items = items;
    }

    @Override
    public void serverUse(Server server, Attendant at) {
        at.send((Link) this);
    }

    @Override
    public void clientUse(Console console) {
        console.openSeller(items);
    }
}
